package com.kakastack.common.pagehelp.example;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kaka.starter.control.dto.PageResult;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created by alan on 2022/5/26.
 * 分页结果集使用示例
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ExamplePageResult extends PageResult {

    public ExamplePageResult(IPage iPage) {
        super(iPage.getCurrent(), iPage.getSize(), iPage.getTotal(), iPage.getRecords());
    }

}
